//
//  XMCustomSendMessage.h
//  XunMi
//
//  Created by MacBook on 2024/4/15.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import <RongIMLibCore/RongIMLibCore.h>

#define XMCustomSendMessageIdentifier @"XM:CustomSendMsg"

NS_ASSUME_NONNULL_BEGIN

@interface XMCustomSendMessage : RCMessageContent <NSCoding>

#pragma mark - 礼物
@property (nonatomic, strong) NSNumber *number;
@property (nonatomic, strong) NSNumber *golds;
@property (nonatomic, strong) NSNumber *isVideo;
@property (nonatomic, strong) NSNumber *index;
/// 1.礼物 2.守护 3.盲盒
@property (nonatomic, strong) NSNumber *msgType;

@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *animUrl;
@property (nonatomic, copy) NSString *imgUrl;
@property (nonatomic, copy) NSString *score;

+ (instancetype)giftMessageWithName:(NSString *)name
                              golds:(NSNumber *)golds
                              score:(NSString *)score
                            msgType:(NSNumber *)msgType
                             number:(NSNumber *)number
                            isVideo:(NSNumber *)isVideo
                              index:(NSNumber *)index
                            animUrl:(NSString *)animUrl
                             imgUrl:(NSString *)imgUrl;

+ (instancetype)guardMessageWithName:(NSString *)name
                              golds:(NSNumber *)golds
                              score:(NSString *)score
                            msgType:(NSNumber *)msgType;

+ (instancetype)boxMessageWithName:(NSString *)name
                              golds:(NSNumber *)golds
                              score:(NSString *)score
                           msgType:(NSNumber *)msgType;

@end

NS_ASSUME_NONNULL_END
